#ifndef __tankscore_H__
#define __tankscore_H__
#include "cocos2d.h"
#include "NumOne.h"
#include "Dialog.h"

using namespace cocos2d;

class TankScore : public Dialog {
	
public:
    CCRenderTexture*	m_target;
    Num *num1;// = new Num(174, 165);
    Num *num2;// = new Num(174, 213);
    Num *num3;// = new Num(174, 259);
    Num *num4;// = new Num(174, 306);
    Num2 *score1;// = new Num2(51, 165);
    Num2 *score2;// = new Num2(51, 213);
    Num2 *score3;// = new Num2(51, 259);
    Num2 *score4;// = new Num2(51, 306);
    //Num *stageNum;// = new Num(274, 60);
    NumX *totalNum;// = new Num(174, 338);
    NumX *totalScore;// = new Num2(135, 123);
	// [Embed(source = '../assets/tankScore.png')] private starPNG:Class;
	float time;
    //float timepass;
	int num;
	int tankNum;
	
	void addrow(Num * &num1,Num2* &score1,int i);
    void update(float dt);
	void destroy();
    TankScore();
    virtual bool ccTouchBegan(CCTouch* touch, CCEvent* event);
};
#endif
